
    <!-- BASIC FORM ELELEMNTS -->
      <div class="col-lg-5">
        <div class="form-panel">
         <h4 class="mb"><i class="fa fa-tag"></i> Tambah Kategori</h4>
         <form class="form-horizontal style-form" method="post" action="<?= base_url() ?>index.php/ctrl_kategori/insertKategoriDb">
       <div class="form-group">
         <label class="col-sm-2 col-sm-2 control-label">Nama</label>
         <div class="col-sm-10">
          <textarea class="form-control" placeholder="Tambahkan Kategori" name="namakategori"></textarea>
        </div>
      </div>
      <div class="form-group">
       <div style="text-align:center">
         <button type="submit" class="btn btn-primary">Add New</button>
         <button type="reset" class="btn">Cancel</button>
       </div>
     </div>
   </form>
 </div>
</div>


<div class="col-lg-5">
  <div class="form-panel">
    <table class="table table-striped table-advance table-hover">
     <h4><i class="fa fa-tags"></i> Semua Kategori</h4>
    <tbody>
      <tr>
    <th>ID kategori</th>
    <th>Nama kategori</th>
    <th> Delete </th>
  </tr> 

      <tr>
        <?php foreach ($getkategori as $row):?>
          <tr>
           <td><?php echo $row->id_kategori;?></td>
           <td><?php echo $row->nama_kategori;?></td>                                                                    
           <td class="center">
            <button class="btn btn-danger btn-xs"><i class="fa fa-trash-o "></i> </button>
            <a href="<?= base_url()?>index.php/ctrl_kategori/deleteKategoriDb/<?=$row->id_kategori?>" onclick="return confirm('Hapus data?')"> delete </a>
           </td>
          </tr>  
      <?php endforeach?>

    </td>
  </tr>

</tbody>
</table>
</div><!-- /content-panel -->
</div>